<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./node_modules/vue/dist/vue.js"></script>
</head>
<body>
        <div id="app">
            <h1>{{msg}}</h1>
        </div>

        <div id="demo">

        </div>
</body>
<script>
    let hunru = {
        created(){
            console.log("组件的创建")
        },
        data:{
            msg:"conhunrun中传来的数据"
        }
    }
    //创建第一个实例
    let vm = new Vue({
        mixins:[hunru],
        el:"#app",
        data:{
            msg:"数据测试"
        },
        created(){
            console.log("实例中的生命周期执行了")
        }
    })
    //创建实例2
    let demo = new Vue({
        //mixins:[hunru],
        created(){
           // console.oog("实例2中生命周期执行了")
        },
        el:"#demo"
    })
</script>
</html>